package dog_mall_commons.dao;

import dog_mall_commons.pojo.Users;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UsersMapper {
    int deleteByPrimaryKey(Integer userId);

    int insert(Users record);

    Users selectByPrimaryKey(Integer userId);

    List<Users> selectAll();

    int updateByPrimaryKey(Users record);

    Users selectByUsernameAndPassword(Users users);

    Users selectByUsernameAndPassword1(@Param("username") String username ,@Param("password") String password);


    void   updateImgById(@Param("id")Integer id, @Param("imgname") String imgname);

    void updateUsernameById(@Param("id")Integer id, @Param("username")String username);

    void  updatePwdById(@Param("id")Integer ids, @Param("pwd")String pwd);

    void  updateAddrByID(@Param("id")Integer id,@Param("address") String address);

    void  deleteAddrById(Integer id);
}